package com.atguigu.gmall.web.feign;

import com.atguigu.gmall.common.result.Result;
import com.atguigu.gmall.web.SkuDetailVo;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

import java.util.List;

/**
 * ClassName: ItemFeinClient
 * Package: com.atguigu.gmall.web.feign
 * Description:
 *
 * @Author ltystart
 * @Create 2025/8/23 12:42
 * @Version 1.0
 */
@FeignClient("service-item")
@RequestMapping("/api/inner/item")
public interface ItemFeignClient {
    /**
     * 获取sku详情
     * @param skuId
     * @return
     */
    @GetMapping("/detail/{skuId}")
    Result<SkuDetailVo> skuDetail(@PathVariable("skuId") Long skuId);

}
